<?php
/**
 * 修改页面
 * User: ZFC
 * Date: 2015/7/7
 * Time: 18:45
 */

use yii\helpers\Url;
use common\widgets\ActiveForm;
use common\widgets\Box;
use common\widgets\ButtonGroup;
use common\models\DAO\AdminRole;

$this->title = '管理员管理';


$form = ActiveForm::begin([
    'id' => 'editAdminForm',
]);
echo $form->field($model, 'id')->hiddenInput(['label'=>['class'=>'hidden']]);
echo $form->field($model, 'adminName')->textInput(['disabled'=>'disabled']);
echo $form->field($model, 'adminPass')->passwordInput(['value' => '', 'placeholder'=>'留空则为不修改']);
echo $form->field($model, 'repeatPass')->passwordInput();
echo $form->field($model, 'roleID')->dropDownList(AdminRole::getSelectList());
echo $form->field($model, 'realName')->textInput();
echo $form->field($model, 'email')->textInput();
echo $form->field($model, 'phone')->textInput();
ActiveForm::end();